package com.shujia.wyh.day05;

import java.util.Scanner;
public class Test1 {
    public static void main(String[] args) {
        //创建键盘录入对象
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入姓名：");
        String name = sc.next();
        System.out.println("请输入年龄：");
        int age = sc.nextInt();
        System.out.println("请输入性别：");
        String gender = sc.next();
        System.out.println("姓名："+name+"\n年龄："+age+"\n性别："+gender);




    }
}
